﻿using System;
using System.Collections;


/**
 * 作者：陈杰
 * QQ  : 710782046
 * Email:ovenjackchain@gmail.com
 * Web :http://www.qidian10.com
 */ 
namespace Model
{
   public class messages
   {
      #region 构造函数
      public messages()
      {}

      public messages(int id,int fromun,int toun,string detail,bool ifread,string time,string sender)
      {
         
		this._id = id;
		this._fromun = fromun;
		this._toun = toun;
		this._detail = detail;
		this._ifread = ifread;
		this._time = time;
        this._sender = sender;
      }
      #endregion

      #region 成员
      
		private int _id;
		private int _fromun;
		private int _toun;
		private string _detail;
		private bool _ifread;
		private string _time;
        private string _sender;
      #endregion


      #region 属性
      
		public int id
		{
			get { return _id ; }
			set { _id = value ; }
		}

		public int fromun
		{
			get { return _fromun ; }
			set { _fromun = value ; }
		}

		public int toun
		{
			get { return _toun ; }
			set { _toun = value ; }
		}

		public string detail
		{
			get { return _detail ; }
			set { _detail = value ; }
		}

		public bool ifread
		{
			get { return _ifread ; }
			set { _ifread = value ; }
		}

		public string time
		{
			get { return _time ; }
			set { _time = value ; }
		}
        public string sender
        {
            get { return _sender; }
            set { _sender = value; }
        }

      #endregion
      
      #region 获得自增键
      private string ReturnAutoID()
      {
          return "id";
      }
      #endregion
   }
}
